import request from '@/utils/request';

const baseModule = '/online';
/**
 * 查询在线用户
 * @param name 参数
 * @returns {Promise<AxiosResponse<T>>}
 */
export const getListPage = (params) => {
  return request({
    url: `${baseModule}/list`,
    method: 'post',
    data: params,
  });
};

export const forceLogout = (params) => {
  return request({
    url: `${baseModule}/force/${params}`,
    method: 'GET',
  });
};
